/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Date;

/**
 * <p>Project: jse2204 - InnerDemo
 * <p>Powered by webrx On 2022-09-13 11:18:01
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class InnerDemo {
    public static void main(String[] args) {
        //System.out.println("hello");

        //out.println("hello world");
        //InnerDemo.out.println("hello world 中文");


        Object d = new Date();
        System.out.println(d instanceof String);//false
        System.out.println(d instanceof Date);//true


        Object c = "str";
        System.out.println(c instanceof String);//true
        c = 12;
        System.out.println(c instanceof Integer);//true

    }

    /* 静态内部类out */
    static class out {

        public static void println(Object obj) {
            System.out.println(obj);
        }
    }
}
